package com.xxxx.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxx.dto.PageBean;
import com.xxxx.pojo.Employee;
import com.xxxx.pojo.R;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chao
 * @since 2022-09-26
 */
public interface EmployeeService extends IService<Employee> {

    PageBean getEmployeeByPage(Integer currentPage, Integer pageSize, Employee employee, LocalDate[] beginDateScope);

    /**
     * 返回最大工号
     * @return
     */
    String maxWorkId();

    /**
     * 添加员工
     * @param employee
     * @return
     */
    R saveEmp(Employee employee);

    List<Employee> getEmployee(Integer id);

    PageBean getEmployeeWithSalary(Integer currentPage, Integer size);
}
